package com.aaa.springboot_rbac.service;

import com.aaa.springboot_rbac.entity.Student;
import com.aaa.springboot_rbac.util.Page;
import com.github.pagehelper.PageInfo;

/**
 * @FileName: StudentService
 * @Description:
 * @Author: 张钰哲
 * @CreateTime: 2025/8/22 16:01
 * @Version: 1.0.0
 */

public interface StudentService {
    /**
     *  添加
     * @param student
     * @return
     */
    int add(Student student);

    /**
     *  根据id修改
     * @param student
     * @return
     */
    int update(Student student);

    /**
     *  根据id删除
     * @param id
     * @return
     */
    int deleteById(Integer id);

    /**
     *  根据id查询
     * @param id
     * @return
     */
    Student queryById(Integer id);

    /**
     *  根据参数，分页查询部门信息
     * @return
     */
    PageInfo queryByPage(Page<Student> page);
}
